// 非登录状态需要加载login和register的内容
import React, { useState } from 'react';
import Register from './register';
import Login from './login';

export const UnauthenticatedApp = () => {
    const [isRegister, setIsRegister] = useState(false);
    return (
        <div>
            {isRegister ? <Register /> : <Login />}
            <button onClick={() => setIsRegister(!isRegister)}>切换</button>
        </div>
    );
};
